package jjn.effective_java.chapter6.item35;

/**
 * @author Jiang Jining
 * @since 2023-04-27 22:29
 */
public enum Ensemble {
    SOLO, DUET, TRIO, QUARTET, QUINTET,
    SEXTET, SEPTET, OCTET, NONET, DECTET;
    
    public int numberOfMusicians() {
        return ordinal() + 1;
    }
}
